Skip floating-point edge-case tests when using an x87
authorBenjamin Barenblat <bbaren@google.com>
Fri, 25 Feb 2022 01:39:43 +0000 (01:39 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Fri, 25 Feb 2022 01:39:43 +0000 (01:39 +0000)
commitd298916f574c6532ae9bffa18870682c3801471e
tree79ed9c06158aeb5bd41f4d39db9ed58547ee8ab9
parent2032033f5042548baf0465e677eccec8a081897c
Skip floating-point edge-case tests when using an x87

Forwarded: yes
Applied-Upstream: https://github.com/abseil/abseil-cpp/commit/311bbd2e50ea35e921a08186840d3b6ca279e880

32-bit Intel CPUs use 80-bit floats for intermediate values, which can
change the results of floating point computations from what we normally
expect. Identify tests that are sensitive to the x87, and skip them when
we’re on 32-bit Intel.

The author works at Google. Upstream applied this patch as Piper
revision 378722613 and exported it to GitHub; the Applied-Upstream URL
above points to the exported commit.

Gbp-Pq: Name float-tests-disable-i386.diff
absl/random/beta_distribution_test.cc
absl/random/distributions_test.cc
absl/random/exponential_distribution_test.cc
absl/random/uniform_real_distribution_test.cc
absl/time/duration_test.cc